<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<?php include_http_metas() ?>
<?php include_metas() ?>
<?php include_title() ?>

<link rel="shortcut icon" href="/favicon.ico" />
<script src="http://api.mapabc.com/fmp/v1.0/js/fmp.js?key=d9026b1f289933f5c6312d30df7b9841a71a3e2eb5266aacb8babbd753b1595d3aa8631ddbb4656e" type="text/javascript"></script>
<script src="<?php echo SITE_URL?>js/jquery.js" type="text/javascript"></script>

<link href="<?php echo SITE_URL?>img/made/zuofa.css" rel="stylesheet" type="text/css" />
<link href="<?php echo SITE_URL?>img/ggCSS.css" rel="stylesheet" type="text/css" />
<link href="<?php echo SITE_URL?>css/tong.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<body>

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td width="1%" background="<?php echo SITE_URL?>/img/made/made_r1_c18.jpg">
			<img src="<?php echo SITE_URL?>img/made/made_r1_c2.jpg" width="9" height="53" />
		</td>
		<td width="15%" align="center" background="<?php echo SITE_URL?>/img/made/made_r1_c18.jpg">
			<img src="<?php echo SITE_URL?>img/made/made_r1_c5.jpg" width="87" height="53" />
		</td>
		<td width="37%" background="<?php echo SITE_URL?>img/made/made_r1_c18.jpg" class="indexdh">
			<a href="<?php echo SITE_URL?>">首页</a>&nbsp;&nbsp; |&nbsp;&nbsp; 
			<a href="/food/index">食</a>&nbsp;&nbsp; |&nbsp;&nbsp; 
			<a href="/scene/index">色</a>&nbsp;&nbsp; | &nbsp;&nbsp;
			<a href="/tong/index">聚</a>&nbsp;&nbsp; |&nbsp;&nbsp; 
			<a href="<?php echo SNS_URL?>">我</a>&nbsp;&nbsp;
		</td>
		<td width="46%" background="<?php echo SITE_URL?>img/made/made_r1_c18.jpg">
			<?php if(!$_COOKIE['userid']):?>
				<form id="loginform" name="loginform" action="<?php echo SNS_URL.'/../do.php?ac=login&ref'?>" method="post">
				<span class="login">用户名：</span>
				<input name="username" type="text" class="textinfo" size="15" value="" />
				&nbsp;&nbsp;<span class="login">密码：</span>
				<input name="password" type="password" class="textinfo" size="15" value="" />
				<input type="hidden" name="refer" value="<?php echo SITE_URL.$_SERVER["REQUEST_URI"]?>" />
				<input type="submit" id="loginsubmit" name="loginsubmit" value="登录" class="submit" />
				<!--<span class="login">&nbsp;&nbsp;<a href="javascript:;" onclick="document.getElementById('loginform').submit()">登陆</a></span>&nbsp;&nbsp;-->
				<span class="login"><a href="<?php echo SNS_URL.'/../do.php?ac=register'?>">入会</a></span>
			<?php else:?>
				<span class="login">客官&nbsp;&nbsp;<?php
					$uid = $_COOKIE['userid'];
					$loginUser = getUserById($uid);
					$groupId = $loginUser['groupid'];
				echo $_COOKIE['username']?>&nbsp;&nbsp;,欢迎你!&nbsp;&nbsp;你当前的等级为：<?php echo $loginUser['grouptitle']; ?>&nbsp;&nbsp;拥有积分:<?php echo $loginUser['credit']; ?>&nbsp;&nbsp;<a href="<?php echo SITE_URL.'sns/cp.php'?>">设置</a>&nbsp;&nbsp;<a href="<?php echo SITE_URL.'sns/space.php?uid='.$uid; ?>">我的空间</a>&nbsp;&nbsp;<a href="<?php echo SITE_URL.'sns/index.php'?>">个人中心</a>&nbsp;&nbsp; <a href="<?php echo SNS_URL.'/../cp.php?ac=common&op=logout';?>">退出登陆</a></span>
			<?php endif;?>
		
		<td width="1%" align="right" background="<?php echo SITE_URL?>img/made/made_r1_c18.jpg">
			<img src="<?php echo SITE_URL?>img/made/made_r1_c22.jpg" width="11" height="53" />
		
	
</table>

<?php echo $sf_data->getRaw('sf_content') ?>

</body>
</html>
